package org.i77soft.games.MineAcerLite.scenes;

import org.i77soft.games.LGame.engine.Images;
import org.i77soft.games.LGame.engine.Scene;
import org.i77soft.games.MineAcerLite.Main;
import org.i77soft.games.MineAcerLite.scenes.GameScene;
import org.loon.framework.android.game.core.graphics.LImage;
import org.loon.framework.android.game.core.graphics.device.LGraphics;

public class GameMenuScene extends Scene {

    private static LImage logoScreen_77la = null;
    private GameScene gameScreen = null;
    private int remainingTicks = 0;
    private int passedTime = 0;

    public GameMenuScene() {
        remainingTicks = 0;
        passedTime = 0;
        gameScreen = new GameScene();
        loadSceneResources();
    }

    public GameMenuScene(GameScene gameScreen) {
        remainingTicks = 180;
        passedTime = 0;
        this.gameScreen = gameScreen;
        loadSceneResources();
    }

    private void loadSceneResources() {
        if (logoScreen_77la == null) {
            if (Main.AppConfig.isHDMode())
                logoScreen_77la = Images.load("/77la_cn-hd.png");
            else
                logoScreen_77la = Images.load("/77la_cn.png");
        }
    }

    public void render(LGraphics g) {
        if (logoScreen_77la != null)
            g.drawImage(logoScreen_77la, 0, 0);
    }

}